<?php
$this->pageTitle=Yii::app()->name . ' - 登录';
?>

<div id="login">
    <div id="content" class="login-box">
        <div class="box">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head"><h2>登录</h2><span>&nbsp;或者 <a href="<?php echo $this->createUrl('user/create'); ?>">注册</a></span></div>
                <div class="sect">

                	<?php $form=$this->beginWidget('CActiveForm', array(
						'id'=>'login-user-form',
						'enableAjaxValidation'=>true,
						'htmlOptions'=>array('class'=>"validator")
					)); ?>
                        <div class="field username">
							<?php echo $form->labelEx($model,'username',array('for'=>"login-email-address")); ?>
							<?php echo $form->textField($model,'username',array('id'=>"login-email-address",'class'=>"f-input")); ?>
							<?php echo $form->error($model,'username'); ?>
						</div>
						<div class="field password">
							<?php echo $form->labelEx($model,'password',array('for'=>"login-password")); ?>
							<?php echo $form->passwordField($model,'password',array('id'=>"login-password",'class'=>"f-input",'size'=>"30")); ?>
							<?php echo $form->error($model,'password'); ?>
						</div>

						<div class="act">
							<?php echo CHtml::submitButton('登录',array('id'=>"login-submit",'class'=>"formbutton")); ?>
						</div>

					<?php $this->endWidget(); ?>

				</div>
			</div>
			<div class="box-bottom"></div>
		</div>
	</div>
	<div id="sidebar">
		<div class="sbox">
			<div class="sbox-top"></div>
			<div class="sbox-content">
				<div class="side-tip">
					<h2>还没有账户？</h2>
					<p>立即<a href="<?php echo $this->createUrl('user/create'); ?>">注册</a>，仅需30秒！</p>
				</div>
			</div>
			<div class="sbox-bottom"></div>
		</div>
	</div>
</div>

